package com.linkai.controller.admin.workflu;

import com.linkai.service.BproductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

/**
 * @Author yamon
 * @Date 2020-12-01 20:07
 * @Description
 * @Version 1.0
 */
@Controller
@RequestMapping("/admin/work/sale")
public class SaleInputController {
    @Autowired
    private BproductService bproductService;

    @RequestMapping(value = "/index", method = RequestMethod.GET)
    public ModelAndView index() {
        ModelAndView modelAndView = new ModelAndView();
        boolean flag = bproductService.isExist();
        modelAndView.addObject("flag",flag);
        modelAndView.setViewName("admin/workflu/index");
        return modelAndView;
    }
}
